﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace com.Converters 
{
    class WebType : TypeConverter 
    {
        string[] values = new string[] {"ASPX","ASCX"};

        public override bool IsValid(ITypeDescriptorContext context, object value)
        {
            return (value is string);
        }

        public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
        {
            return false;
        }

        public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
        {
            return true;
        }

        public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            return new StandardValuesCollection(values);
        }
    }
}
